//package com.exchange.consumer;
//
//import com.rabbitmq.client.Channel;
//import org.springframework.amqp.core.Message;
//import org.springframework.amqp.rabbit.annotation.RabbitHandler;
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.amqp.rabbit.listener.api.ChannelAwareMessageListener;
//import org.springframework.stereotype.Component;
//
///**
// * @Author : RulerWood
// * @Data : 2024/4/28 - 8:43
// */
//@Component
//@RabbitListener(queues = "ttl-queue")
//public class MapMessageConsumer implements ChannelAwareMessageListener {
//
//    /**
//     * 电池预约业务
//     * 1、将当前电柜中的某块电池进行绑定，修改当前电池的状态
//     *
//     * @param message
//     */
//    @Override
//    @RabbitHandler
//    public void onMessage(Message message, Channel channel) throws Exception {
//        Long deliveryTag = message.getMessageProperties().getDeliveryTag();
//        System.err.println(message.getMessageProperties());
//        channel.basicNack(deliveryTag,false,false);
//    }
//
//}
